include Rules.make

all:
	$(MAKE) config  -C bsp-linux-am335x
	$(MAKE) build   -C bsp-linux-am335x
	$(MAKE) install -C bsp-linux-am335x
	$(MAKE) config  -C rootfs-debian
	$(MAKE) build   -C rootfs-debian
	$(MAKE) install -C rootfs-debian
	$(MAKE) config  -C rootfs-tslib-1.4
	$(MAKE) build   -C rootfs-tslib-1.4
	$(MAKE) install -C rootfs-tslib-1.4
	$(MAKE) config  -C rootfs-qt-4.8.6
	$(MAKE) build   -C rootfs-qt-4.8.6
	$(MAKE) install -C rootfs-qt-4.8.6

download:
	git clone https://git.oschina.net/allOFsbc/arm-linux-gnueabihf-4.9.1.git
	cd arm-linux-gnueabihf-4.9.1 && git checkout 8bb2002e9
	rm -rf arm-linux-gnueabihf-4.9.1/.git
	git clone https://git.oschina.net/allOFsbc/host-bin.git
	cd host-bin && git checkout d0998d322
	rm -rf host-bin/.git
	git clone https://git.oschina.net/allOFsbc/bsp-linux-am335x.git
	cd bsp-linux-am335x && git checkout 1f0fe7b8e
	rm -rf bsp-linux-am335x/.git
	git clone https://git.oschina.net/allOFsbc/rootfs-debian.git
	cd rootfs-debian && git checkout 8b51feb5b
	rm -rf rootfs-debian/.git
	git clone https://git.oschina.net/allOFsbc/rootfs-tslib-1.4.git
	cd rootfs-tslib-1.4 && git checkout 43adfe0e4
	rm -rf rootfs-tslib-1.4/.git
	git clone https://git.oschina.net/allOFsbc/rootfs-qt-4.8.6.git
	cd rootfs-qt-4.8.6 && git checkout 583430a19
	rm -rf rootfs-qt-4.8.6/.git
